﻿<Window x:Class="NSpeexTest.MainView"
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    Title="MainView" Height="300" Width="300">
    <StackPanel>
        <StackPanel Orientation="Horizontal">
            <TextBlock Margin="0,0,15,0">Send:</TextBlock>
            <Button Name="StartButton" Command="{Binding StartCommand}">Play</Button>
        </StackPanel>
        <DockPanel LastChildFill="True" Margin="0,50,0,0">
            <TextBox>Listener:</TextBox>
            <Button DockPanel.Dock="Right" Command="{Binding ListenCommand}">Listen</Button>
            <TextBox DockPanel.Dock="Right" Text="{Binding ListenAddress}"/>
        </DockPanel>
        <DockPanel LastChildFill="True" Margin="2">
            <ProgressBar DockPanel.Dock="Right" Margin="2" Height="20" Width="200" Name="depth" Value="{Binding BufferDepth}" Maximum="{Binding BufferSize}"/>
            <TextBlock VerticalAlignment="Center">Buffer Depth:</TextBlock>
        </DockPanel>
        <DockPanel LastChildFill="True" Margin="2">
            <ProgressBar DockPanel.Dock="Right" Margin="2" Height="20" Width="200" Name="volume" Value="{Binding Volume}" Maximum="32767"/>
            <TextBlock VerticalAlignment="Center">Volume:</TextBlock>
        </DockPanel>
        <Slider Value="{Binding SelectedVolume}" Maximum="1" LargeChange="0.2" />
    </StackPanel>
</Window>
